FROM anapsix/alpine-java:8_server-jre_unlimited
# 设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

WORKDIR /ruoyi

EXPOSE 8088

ADD ./target/ruoyi-admin.jar app.jar

ENTRYPOINT ["java", "-jar", "app.jar"]

CMD ["sleep 1s;"]

# CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar jeecg-boot-module-system-2.2.1.jar